﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace Brain.Windows
{
    public static class PointUtil
    {
        public static Point Clamp(Point value, Point min, Point max)
        {
            return new Point(IntUtil.Clamp(value.X, min.X, max.X),
                             IntUtil.Clamp(value.Y, min.Y, max.Y));
        }
    }
}
